import { defineStore } from 'pinia'
 
export const useTabbarStore = defineStore('tabbar',{
	state:()=>{
		return {
			tabBarIndex:0,
			tabbs:[
				{
					text:'广场',
					icon:'home',
					color:'#f00',
					url:'/market/market',
					
				},
				{
					text:'任务',
					icon:'photo',
					color:'#f00',
					url:'/task',
					defaultShow:true,
					hideWhenRoles:['admin']
				},
				{
					text:'消息',
					icon:'photo',
					color:'#f00',
					url:'/pages/job/publish/job-space/job-space',
					defaultShow:true,
					hideWhenRoles:['admin']
				},
				{ 
					text:'管理',
					icon:'play-right', 
					color:'#f00',
					url:'/job-manager',
					defaultShow:false,
					showWhenRoles:['admin']
				},
				{
					text:'我的',
					icon:'account',
					color:'#f00',
					url:'/mine'
				}
			]
		}
	}
})
	